package com.heihei.security.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.FilterType;
import org.springframework.stereotype.Controller;

/**
 * Spring容器配置
 *
 * @author duanhengfei
 * @version 1.0
 * @date 2020/6/26 21:44
 * @since JDK1.8
 */
@Configuration
//配置扫描的包，不扫描controller
@ComponentScan(basePackages = "com.heihei.security",
            excludeFilters = {@ComponentScan.Filter(type = FilterType.ANNOTATION, value = Controller.class)})
public class ApplicationConfig {
    //在此配置除了Controller的其他的Bean，比如数据库连接池、事务管理器、业务bean等
}